package com.hk.webapp.vo;

import com.hk.webapp.annotations.validation.groupa.GroupA1;
import com.hk.webapp.annotations.validation.groupa.GroupA2;
import com.hk.webapp.annotations.validation.groupa.GroupA3;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;

@Data
public class LoginVo {

    @NotNull(message = "请输入登录账号", groups = Default.class)
    private String user_name;

    @NotNull(message = "请输入密码", groups = GroupA1.class)
    private String passwd;

    @NotNull(message = "请输入验证码", groups = GroupA2.class)
    private String vcode;

    @NotNull(message = "请获取验证码", groups = GroupA3.class)
    private String encode;

}
